#[warn(dead_code)]
fn main() {
    // 1.simple structure
    struct User {
        name: String,
        count: String,
        nonce: u64,
        active: bool,
    }

    // 2. instance of structure
    let mut tom = User {
        name: String::from("Tom"),
        count: String::from("30"),
        nonce: 10000,
        active: true,
    }; 

    // 3. tuple structure
    struct Point(i32, i32);

    let point1 = Point(10, 20);
    let point2 = Point(30, 11);
    println!("point1.x = {} point1.y = {}", point1.0, point1.1);
    println!("point2.x = {} point2.y = {}", point2.0, point2.1);
    println!("Hello, world!");

}
